Start with a file array with a resonable preallocated size
authorFederico Mena Quintero <federico@novell.com>
Wed, 26 Aug 2009 23:52:24 +0000 (18:52 -0500)
committerBenjamin Otte <otte@gnome.org>
Thu, 15 Oct 2009 20:06:13 +0000 (22:06 +0200)
commit3232c469fc87b98121817e08947e0b62bacf5720
treec98233a2b9dca4b496bcd4f6cc394f5ce2d248a1
parent51104156845fb9adcd94f6620415775d49ad6f95
Start with a file array with a resonable preallocated size

g_array_new() doesn't reserve any size by default, so during the initial population
of the file array, we'll do more reallocs than strictly needed.  We'll start with
a reasonable preallocated size, in this case the number of files which we can
get in a single chunk out of GIO.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilesystemmodel.c